home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / wclass20.zip / CPPFUNC.SCT < prev    next >
Text File  |  1994-12-20  |  1KB  |  45 lines

  1. // Class: CLASS
  2.  
  3. //////////////////////////.cpp file/////////////////////////////////////////////////////
  4. #include "$CLASS$.h"                    
  5.  
  6. // Functions for class CLASS
  7. [
  8. //  Function:     OPERATION_NAME
  9. //  Purpose:     OPERATION_COMMENT1
  10. //  Parameters: CPP_OPERATION_PARAMETERS
  11. //  Comments:     OPERATION_COMMENT2
  12. OPERATION_RETURN_TYPE CLASS::OPERATION_NAME(CPP_OPERATION_PARAMETERS) CPP_OPERATION_CONSTANT
  13. {
  14.   OPERATION_CODE
  15. }
  16.  
  17.             //Operator<< insertion for cout
  18.             //Update to access 1:M part class attributes
  19.             //Update to access 1:1 associated class attributes
  20.             //Update to access 1:M associated class attributes     
  21. ostream& operator<< (ostream& os, CLASS$& a$CLASS)
  22. {
  23. [  os << (BASE_CLASS &) a$CLASS;]
  24.   os << "Object Attribute Values - Class CLASS" << "\n";
  25. [  os << "ATTRIBUTE_NAME: " << a$CLASS$.$ATTRIBUTE_NAME << "\n";]
  26. [  os << "  AGGREGATION_ONE_NAME$: " << a$CLASS$.$AGGREGATION_ONE_NAME << "\n";]
  27.   return os;
  28. }            
  29.  
  30.             //Operator>> extraction for cin
  31.             //Update to access 1:M part class attributes
  32.             //Update to access 1:1 associated class attributes
  33.             //Update to access 1:M associated class attributes 
  34. istream& operator>> (istream& is, CLASS$& a$CLASS)
  35. {
  36. [  is >> (BASE_CLASS &) a$CLASS;]
  37.   cout << "\nEnter Object Attibute Values - Class CLASS"; 
  38. [  cout << "\nEnter ATTRIBUTE_NAME : " << "\n";
  39.   is >> a$CLASS$.$ATTRIBUTE_NAME;]        
  40. [  is >> a$CLASS$.$AGGREGATION_ONE_NAME;]
  41.   return is;
  42. }                
  43.  
  44.